package com.tencent.iov.cowin.befsale.clue.service.cus;

import com.tencent.iov.cowin.befsale.clue.domain.cus.po.OemCustomerTagRel;
import com.software.boot.common.model.dao.PageRequest;
import com.software.boot.common.model.dao.PageResponse;

import java.util.List;

/**
 * @Describe: 总部客户标签关联表_Service接口层
 * @author: xiamu
 * @created: 2021-12-21 18:37:34
 * @version: 1.0
 */

public interface OemCustomerTagRelService {

    /**
     * 通过ID获取详细信息
     *
     * @param: id
     * @return: OemCustomerTagRel对象
     */
    OemCustomerTagRel getDetailById(Long id);

    /**
     * 单条数据插入OemCustomerTagRel
     *
     * @param request
     * @return 插入的条数
     */
    int insert(OemCustomerTagRel request);

    /**
     * 批量插入OemCustomerTagRel
     *
     * @param requests
     * @return 批量插入的条数
     */
    int insertBatch(List<OemCustomerTagRel> requests);

    /**
     * 单条OemCustomerTagRel更新
     *
     * @param request
     * @return 更新的条数
     */
    int update(OemCustomerTagRel request);

    /**
     * 通过ID删除数据
     *
     * @param request
     * @return 删除的条数
     */
    int delete(OemCustomerTagRel request);

    /**
     * 根据条件查询对象list列表
     *
     * @param request
     * @return 查询结果
     */
    List<OemCustomerTagRel> getListByParam(OemCustomerTagRel request);

    /**
     * 根据条件查询对象Page记录
     *
     * @param request
     * @return 查询结果
     */
    PageResponse<OemCustomerTagRel> getPageByParam(PageRequest<OemCustomerTagRel> request);

    /**
     * 根据条件查询单个对象
     *
     * @param request
     * @return
     */
    OemCustomerTagRel getOneByParam(OemCustomerTagRel request);
}